<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Ocr\V20181119\Models;
use TencentCloud\Common\AbstractModel;

/**
 * RecognizeBrazilRNEOCR response structure.
 *
 * @method string getRNE() Obtain RNE
 * @method void setRNE(string $RNE) Set RNE
 * @method string getCLASSIFICATION() Obtain Classification
 * @method void setCLASSIFICATION(string $CLASSIFICATION) Set Classification
 * @method string getVALIDADE() Obtain Valid date
 * @method void setVALIDADE(string $VALIDADE) Set Valid date
 * @method string getNOME() Obtain Name
 * @method void setNOME(string $NOME) Set Name
 * @method string getMembership() Obtain Family information
 * @method void setMembership(string $Membership) Set Family information
 * @method string getNACIONALIDADE() Obtain Nationality
 * @method void setNACIONALIDADE(string $NACIONALIDADE) Set Nationality
 * @method string getNATURALIDADE() Obtain Place of Birth
 * @method void setNATURALIDADE(string $NATURALIDADE) Set Place of Birth
 * @method string getIssuingAgency() Obtain Issuing agency
 * @method void setIssuingAgency(string $IssuingAgency) Set Issuing agency
 * @method string getDateOfBirth() Obtain Birthday
 * @method void setDateOfBirth(string $DateOfBirth) Set Birthday
 * @method string getSex() Obtain Gender
 * @method void setSex(string $Sex) Set Gender
 * @method string getEntryDate() Obtain Date of entry
 * @method void setEntryDate(string $EntryDate) Set Date of entry
 * @method string getVIA() Obtain VIA
 * @method void setVIA(string $VIA) Set VIA
 * @method string getDispatchDate() Obtain Dispatch date
 * @method void setDispatchDate(string $DispatchDate) Set Dispatch date
 * @method string getMRZ() Obtain MRZ
 * @method void setMRZ(string $MRZ) Set MRZ
 * @method string getPortraitImage() Obtain PortraitImage base64
 * @method void setPortraitImage(string $PortraitImage) Set PortraitImage base64
 * @method string getRequestId() Obtain The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 * @method void setRequestId(string $RequestId) Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 */
class RecognizeBrazilRNEOCRResponse extends AbstractModel
{
    /**
     * @var string RNE
     */
    public $RNE;

    /**
     * @var string Classification
     */
    public $CLASSIFICATION;

    /**
     * @var string Valid date
     */
    public $VALIDADE;

    /**
     * @var string Name
     */
    public $NOME;

    /**
     * @var string Family information
     */
    public $Membership;

    /**
     * @var string Nationality
     */
    public $NACIONALIDADE;

    /**
     * @var string Place of Birth
     */
    public $NATURALIDADE;

    /**
     * @var string Issuing agency
     */
    public $IssuingAgency;

    /**
     * @var string Birthday
     */
    public $DateOfBirth;

    /**
     * @var string Gender
     */
    public $Sex;

    /**
     * @var string Date of entry
     */
    public $EntryDate;

    /**
     * @var string VIA
     */
    public $VIA;

    /**
     * @var string Dispatch date
     */
    public $DispatchDate;

    /**
     * @var string MRZ
     */
    public $MRZ;

    /**
     * @var string PortraitImage base64
     */
    public $PortraitImage;

    /**
     * @var string The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public $RequestId;

    /**
     * @param string $RNE RNE
     * @param string $CLASSIFICATION Classification
     * @param string $VALIDADE Valid date
     * @param string $NOME Name
     * @param string $Membership Family information
     * @param string $NACIONALIDADE Nationality
     * @param string $NATURALIDADE Place of Birth
     * @param string $IssuingAgency Issuing agency
     * @param string $DateOfBirth Birthday
     * @param string $Sex Gender
     * @param string $EntryDate Date of entry
     * @param string $VIA VIA
     * @param string $DispatchDate Dispatch date
     * @param string $MRZ MRZ
     * @param string $PortraitImage PortraitImage base64
     * @param string $RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("RNE",$param) and $param["RNE"] !== null) {
            $this->RNE = $param["RNE"];
        }

        if (array_key_exists("CLASSIFICATION",$param) and $param["CLASSIFICATION"] !== null) {
            $this->CLASSIFICATION = $param["CLASSIFICATION"];
        }

        if (array_key_exists("VALIDADE",$param) and $param["VALIDADE"] !== null) {
            $this->VALIDADE = $param["VALIDADE"];
        }

        if (array_key_exists("NOME",$param) and $param["NOME"] !== null) {
            $this->NOME = $param["NOME"];
        }

        if (array_key_exists("Membership",$param) and $param["Membership"] !== null) {
            $this->Membership = $param["Membership"];
        }

        if (array_key_exists("NACIONALIDADE",$param) and $param["NACIONALIDADE"] !== null) {
            $this->NACIONALIDADE = $param["NACIONALIDADE"];
        }

        if (array_key_exists("NATURALIDADE",$param) and $param["NATURALIDADE"] !== null) {
            $this->NATURALIDADE = $param["NATURALIDADE"];
        }

        if (array_key_exists("IssuingAgency",$param) and $param["IssuingAgency"] !== null) {
            $this->IssuingAgency = $param["IssuingAgency"];
        }

        if (array_key_exists("DateOfBirth",$param) and $param["DateOfBirth"] !== null) {
            $this->DateOfBirth = $param["DateOfBirth"];
        }

        if (array_key_exists("Sex",$param) and $param["Sex"] !== null) {
            $this->Sex = $param["Sex"];
        }

        if (array_key_exists("EntryDate",$param) and $param["EntryDate"] !== null) {
            $this->EntryDate = $param["EntryDate"];
        }

        if (array_key_exists("VIA",$param) and $param["VIA"] !== null) {
            $this->VIA = $param["VIA"];
        }

        if (array_key_exists("DispatchDate",$param) and $param["DispatchDate"] !== null) {
            $this->DispatchDate = $param["DispatchDate"];
        }

        if (array_key_exists("MRZ",$param) and $param["MRZ"] !== null) {
            $this->MRZ = $param["MRZ"];
        }

        if (array_key_exists("PortraitImage",$param) and $param["PortraitImage"] !== null) {
            $this->PortraitImage = $param["PortraitImage"];
        }

        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
            $this->RequestId = $param["RequestId"];
        }
    }
}
